import axios from '@/api'

/******************* 列表 *******************/
export function flowList(params) {
    return axios.request({
        url: '/declaration/page',
        method: 'post',
        data: params
    });
}

/******************* 详情 *******************/
export function flowInfo(id) {
    return axios.request({
        url: '/declaration/info/' + id,
        method: 'get'
    });
}

/******************* 添加 *******************/
export function flowAdd(data) {
    return axios.request({
        url: '/declaration/save',
        method: 'post',
        data: data
    });
}

/******************* 编辑 *******************/
export function flowUpdate(data) {
    return axios.request({
        url: '/declaration/modify',
        method: 'put',
        data: data,

    });
}

/******************* 删除 *******************/
export function flowDel(id) {
    return axios.request({
        url: '/declaration/removeById/'+id,
        method: 'delete'
    });
}
